<script setup type="model">
  // import {defineEmits} from 'vue'

  let emits = defineEmits(['name', 'age'])

  let person = {
    name: "张三",
    age: 18
  }

  function fun () {
    emits('name', person.name)
    emits('age', person.age)
  }

</script>

<template>
  <div>
    <span @click="fun()" v-text="'传输'"></span>
  </div>
  
</template>

<style scoped>

</style>
